<template>
  <div class="wrapper">
    <div class="title">热销2推荐</div>
    <ul class="list">
      <li class="item border-bottom" v-for="item of list" :key="item.id">
        <div class="item-img">
          <img :src="item.imgUrl" class="img">
        </div>
        <div class="item-info">
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'weekend',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import "~styles/mixins.styl"
  .wrapper
    overflow hidden
    .item-img
      overflow hidden
      height: 0
      padding-bottom: 33%
    .title
      line-height: 0.4rem
      text-indent: 0.2rem
      background #eee
    .img
      display: block
      width: 100%
    .item-info
      padding: 0.1rem
      .item-title
        font-size 0.32rem
        line-height: 0.54rem
        ellipsis()
      .item-desc
        line-height: 0.4rem
        font-size 0.28rem
        color: #ccc
        ellipsis()
</style>
